<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue动态绑定数据</title>
</head>
<body>
    <div>
     <h1>{{time}},{{time % 5}}</h1>
    </div>
    <script src="vue.js"></script>
    <script>
    var i = 1;

       
     var vue =   new Vue({
        el:'div'
        ,
        data:{
             time:i 
        }
    })
    
   
  
   
   setInterval(function(){
      vue.time ++;
      console.log(vue)
},1000)
    </script>
</body>
</html>